﻿package server;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Date;

public interface ResTakeOutInterface extends Remote {
	
	public int getFirstTakeOutNum(Date day) throws RemoteException;

	public String getCusName(int i) throws RemoteException;

	public String getPhone(int i)throws RemoteException;

	public String getAddress(int i) throws RemoteException;

	public double getAmount(int i)throws RemoteException ;

	public String getDate(int i) throws RemoteException;


	public int getTakeOutSize(Date day) throws RemoteException;
		
	
	public int addNewOrder1(String name,String phone,String address,Date date) throws RemoteException;
	
	public boolean addNewOrder2(int id,double money) throws RemoteException;
	public int getSize() throws RemoteException;
	
}
